package com.neuedu.aop.service;

import com.neuedu.aop.po.Dept;
import org.springframework.stereotype.Service;

/**
 * @author 金山
 * 项目：spring-learn
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/3/1114:09
 */
@Service    //使用容器 管理 UserService
public class DeptService {


    public void insert(){
        System.out.println("DeptService.insert调用");
    }


    public void update(){

        int result = 0 / 0;
        System.out.println("DeptService.update调用");
    }


    public Dept selectById(){
        // int result = 0 / 0;
        System.out.println("DeptService.selectById调用");

        //模拟从数据库查询到的
        Dept dept =  new Dept("1001","开发","2701");
        return dept;
    }

}